//import { r } from "@/router";

const mutations = {
    // save token
    COMMIT_TOKEN(state, object) {
        state.token = object.token;
    },

    // save tag list
    TAGES_LIST(state, arr) {
        state.tagList = arr;
    },

    //
    IS_COLLAPSE(state, bool) {
        state.isCollapse = bool;
    },

    // save roles
    COMMIT_ROLE(state, roles) {
        state.roles = roles;
    },

    // get language
    GET_LANGUAGE(state, lang) {
        state.lang = lang;
    },

    // set bread list
    SET_BREAD(state, breadList) {
        state.breadList = breadList;
    }
}

export default mutations;